package vpnmodel

type VpnServerInfo struct {
	ID           int    `validate:"omitempty"` //ID信息不传输
	Name         string `validate:"required"`  //名字信息不传输
	ClientPrefix string `validate:"required" db:"client_prefix"`
	IsInner      bool   `db:"is_inner"`
	Mtu          int    `validate:"required"`
	IP           string `validate:"required"`
	Port         int    `validate:"required"`
	Socks5Port   int    `validate:"required" db:"sockets_port"`
	RemotePrefix string `validate:"required" db:"remote_prefix"`
	InnerIP      string `db:"inner_ips"`                 // 内网地址 修改成非必须字段
	UGroupID     int    `validate:"required" db:"ug_id"` // 指示这个服务器属于哪个用户组
	TimeStamp    string `validate:"required"`
}

type VpnServerNameInfo struct {
	ID   int    `validate:"required"` //需要删除的server信息ID
	Name string `validate:"required"` //需要删除的server名字信息
}

type UGroupID struct {
	ID int `validate:"required"`
}
